import http from "../utils/request";

export const loginApi = (data?: object) =>
  http.post("/admin/admin/login", data);

export const adminApi = (params?: object) =>
  http.get("/admin/admin/list", params);

export const removeAdminApi = (params?: object) =>
  http.post("/admin/admin/delete", params);

export const addAdminApi = (params?: object) =>
  http.post("/admin/admin/add", params);
